Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prevent illegal access warnings on Java 9 #110

Merged
merged 9 commits into from Jan 4, 2019
Merged

Conversation

electrum
Copy link
Member

No description provided.

@electrum electrum changed the title # Requesting a pull to airlift:master from electrum:jol # # Write a message for this pull request. The first block # of text is the title and the rest is the description. Prevent illegal access warnings on Java 9 Dec 31, 2018
@electrum electrum requested a review from dain December 31, 2018 08:01
@electrum
Copy link
Member Author

The first three commits are from #101

The buffer is created by duplicating the original buffer that is
referenced by the Slice object. This avoids illegal access warnings
on JDK 9, but does not allow creating buffers for Slices created via
UnsafeSliceFactory that access arbitrary memory locations.
Copy link
Member

@dain dain left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Some comments on the simplifications resulting in extra allocations. Otherwise looks good

src/main/java/io/airlift/slice/Slice.java Show resolved Hide resolved
src/main/java/io/airlift/slice/Slice.java Show resolved Hide resolved
@electrum electrum merged commit 426eaf8 into airlift:master Jan 4, 2019
@electrum electrum deleted the update branch January 4, 2019 04:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants